'use strict'

class  shenqing{
  
  constructor () {

  }
  //得到消息
  async list (c) {
    // console.log(c.query)
    let wuser = c.service.model.shenqing
    let ulist = await wuser.select()
    c.send(ulist)
  }

  async post(c){
    let data=JSON.parse(c.body)
    let wuser = c.service.model.shenqing
    let id=await wuser.insert(data)
    c.send(id)
  }
}

module.exports = shenqing